<?php
require_once "log4php/Logger.php";
require_once "Transaction.php";
Logger::configure(WEB_CONFIG_DIR . DIRECTORY_SEPARATOR . 'logConfig.xml');

class BaseContext {
    private $logger;
    private $transaction;

    public function __construct() {
        $this -> transaction = new Transaction();
        $this->logger = Logger::getLogger('myLogger');
    }

    public function logInfo($code, $message) {
        return;
    }

    public function logError($code, $message) {
        return;
    }

    public function logDebug($code, $message) {
        return;
    }

    public function logAudit($code, $message) {
    }

    public function logException($exception) {
        return;
    }

    protected function getLogPrefix() {
        return "";
    }

    public function getTransaction() {
        return $this -> transaction;
    }

}
?>
